package string;
/**
 * char charAt(int index);
 * 返回当前字符串指定为（index）上的字符----很具位置找字符
 * */
public class CharAtDemo {
    public static void main(String[] args) {
       /* //                    111111----和下面的练成10/11/12/13/14/15
        //            0123456789012345
        String str = "thinking in java";
        char c = str.charAt(9);//获取str中下标9所对应的字符
        System.out.println(c);*/


        String d = "ghejhglhghgjkhjkdf";

        System.out.println(d.length());
        char c =d.charAt(5);
        System.out.println(c);
    }
}
